<%@ page contentType="text/html; charset=UTF-8" language="java" import="com.util.*,java.util.*" errorPage="/error.jsp" %>
<div id=sidebar>
<div id=innersidebar>
<div id=sidebar-topimg></div>
<div class=sidepanel id=Side_AboutMe>
<h4 class=Ptitle>博客公告</h4>
<div class=Pcontent style="font-size:10pt">
<%=ui.getGonggao()%></div>
<div class=Pfoot></div></div>
<div class=sidepanel id=Side_Category>
<h4 class=Ptitle>日志分类</h4>

<div class=Pcontent>
<%
		  	
			List logTypeList=ltb.getAllLogTypes(username);
			for(int i=0;i<logTypeList.size();i++) {
		LogType lt2=(LogType)logTypeList.get(i);
	%>
	<A  class=CategoryA
title="<%=lt2.getLogtypeMemo()%>" href="<%=request.getContextPath() %>/show/<%=username%>/<%=lt2.getLogtypeId()%>.html"><%=lt2.getLogtypeName()%> &nbsp;[<%=llb.getAllLogByTypeID(Integer.parseInt(lt2.getLogtypeId())).size()%>] </A>
	<BR>
		<%
		
		}
		
	%>
</div>
<div class=Pfoot></div></div>
<div class=sidepanel >
<h4 class=Ptitle>最近回复</h4>
<div class=Pcontent>
<div class=commentTable>
<% 		  
    List replyList2=lrb.getReplyTop5(username);   
    if(replyList2!=null&replyList2.size()>0) {
	  for(int i=0;i<replyList2.size();i++) {
		  LogReply lr=(LogReply)replyList2.get(i);
%>
		  <A class=sideA 
title="<%=lr.getNickname()%><%=lr.getReplyTime().replace("-","/")%>[<%=((LogInfo)llb.getLogByNo(lr.getLogNo())).getLogTitle()%>]<%=TextTools.html2txt(lr.getReplyContent())%>" 
href="<%=request.getContextPath() %>/log/temp/<%=lr.getLogNo()%>.html"><%=lr.getNickname()%>:&nbsp;<%=lr.getReplyContent().length()>26?lr.getReplyContent().substring(0,26):lr.getReplyContent()%></A>
		       		  <% 
		  			}
			} else {
			%>
			  <h7></h4>
        
		  <%
		  	}
			%> </div></div>
<div class=Pfoot></div></div>
<div class=sidepanel id=Side_Category>
<h4 class=Ptitle>友情链接</h4>
<div class=Pcontent>
<div class=commentTable>
 <%	
	   LinkListBus llb2=new LinkListBus();
	   List linkList=llb2.getLinkByUserName(username);
	   for(int i=0;i<linkList.size();i++) {
	  	 Link link=(Link)linkList.get(i);
	   %>
	<A  class=sideA
title="<%=link.getLinkDemo()%>" 
href="<%=link.getLinkUrl()%>"><%=link.getLinkName()%></A>
     		<%
		}
		%></div>
</div>
<div class=Pfoot></div></div>
<div class=sidepanel >
<h4 class=Ptitle>日志统计</h4>
<div class=Pcontent>
<div class=commentTable>
&nbsp;&nbsp;原创 -<%=llb.getCountByType(username,0)%> <br/>
&nbsp;&nbsp;翻译 -<%=llb.getCountByType(username,1)%> <br/>
&nbsp;&nbsp;转贴 -<%=llb.getCountByType(username,2)%><br/>
&nbsp;&nbsp;点击 -<%=llb.getCountByNum(username,1)%> <br/>
&nbsp;&nbsp;评论 - <%=llb.getCountByNum(username,0)%> </div>
</div>
<div class=Pfoot></div></div>

<DIV id=sidebar-bottomimg></DIV></DIV></DIV>